<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<html>
<head>
<title>khutro.net</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link href="css/userpage.css" rel="stylesheet" type="text/css">
<link href="css/compare.css" rel="stylesheet" type="text/css">
<link href="css/info.css" rel="stylesheet" type="text/css">
<link href="css/search.css" rel="stylesheet" type="text/css">
<link href="css/form.css" rel="stylesheet" type="text/css">
<script src="js/jquery-1.8.2.js"></script>
<SCRIPT type="text/javascript" src="js/items.js"></SCRIPT>
<script src="js/scroll-startstop.events.jquery.js"
	type="text/javascript"></script>
<script src="js/custom-form-elements.js"></script>
<script type="text/javascript"
	src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<link rel="stylesheet" href="css/stylesconfirm.css">
<script type="text/javascript" src="script/jquery.reveal.js"></script>
<script type="text/javascript" src="js/compare.js"></script>
<script type="text/javascript" src="js/search.js"></script>
<link href="css/button.css" rel="stylesheet" type="text/css">
<style type="text/css">
.ac_over {
	color: white; background-color:green;
}
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0"
	marginheight="0">
	<form action="" id="urlpath" name="urlpath">
<input id="testurl" type="hidden" value=""/>
</form>
<script type="text/javascript">
	var path = window.location;
	urlpath.elements["testurl"].value = path;
</script>
	<!-- Save for Web Slices (khutroslide.psd) -->
	<div id="header">
		<div id="headerContent">
			<a href="index.action" id="logo">khutro</a>
			<ul id="menuBar">
				<li><a href="index.action">Trang chủ</a></li>
				<li><a href="help.jsp">Trợ giúp</a></li>
				<li><a href="checkaddtopic.action">Đăng cho thuê</a>
				<li><a href="checkaddsharetopic.action">Đăng chia sẻ</a>
				<li><a href="compareresult.action">So sánh<span
						id="numberCompare" style="color: red; font-size: 12px">(${number})</span>
				</a></li>
				
			</ul>
			<div id="modal5">
				<div id="heading5">Thông báo !</div>
				<div id="content5">
					<p style="text-align: left; padding-left: 10px; color: black;">Bạn
						cần đăng nhập để sử dụng chức năng này</p>
					<p style="text-align: left; padding-left: 10px; color: black;">Đăng
						nhập với tài khoản của Facebook</p>
						<br/>
					<a style="text-align: left;" href="login.jsp"
						class="button1 green close"><img src="images/dialog/tick.png">Đăng
						nhập</a> <a style="text-align: left;" href="javascript:void(0);"
						class="button1 red close"><img src="images/dialog/cross.png">Đóng</a>
				</div>
			</div>
			<div id="loginPanel">
				<c:choose>
					<c:when test="${displayNamess!=null}">
						<a class="profileButton" href="profileuser.action">${displayNamess}
						</a>
						<ul>
							<c:choose>
								<c:when test="${userRoleIdss==1}">
									<li><a href="adminloadsystem.action">Trang quản lý</a>
								</c:when>
							</c:choose>
							<li><a href="profileuser.action">Trang cá nhân</a></li><li><a href="changepass.jsp">Đổi mật khẩu</a>
							</li>
							<li><a href="logout.jsp">Thoát</a>
							</li>
						</ul>
					</c:when>
					<c:otherwise>
						<a class="loginButton" href="javascript:void(0);" onclick="getcurrenturlvalue();">Đăng nhập</a>
					</c:otherwise>
				</c:choose>
			</div>
			<div id="search">
			<DIV class="search-box">
			  <div style="width: 80%;float: left">
		      <INPUT id="lookup_input" class="search-bar" style="width: 220px;height: 24px;" name="keysearch" value="Tìm Kiếm ..." type="text">
		      </div>
		      <div style="width: 19%;float: right;">
		      <img alt="search" src="images/search.png" width="24" height="24" onclick="searchFull();">
		      </div>
				<SCRIPT type="text/javascript" src="js/searchfulltext.js"></SCRIPT>
		      
		      <FORM id="search-form" method="post" action="fulltextsearch.action">
		      	<INPUT id="sortby" class="search-bar" name="sortby" value="0" type="hidden">
		      </FORM>
      		</DIV>
			</div>  
		</div>
	</div>
	<script type="text/javascript">
	$('#lookup_input').bind('keypress', function(e) {
		if(e.keyCode==13){
			searchFull();
		}
	});
	</script>
	<img src="images/spacer.gif" width="1" height="56" alt="">

	<div id="contentmain">
		<!--Main-->
		<div class="boxleftcontent" id="maincompare">
			<!--Main class-->
			<div class="headercompare" style="text-align: center;">
				<span style="margin: 3px 0 3px 15px;">So sánh bài viết</span>
			</div>
			<c:choose>
				<c:when test="${list1==null && list2==null && list3==null}">
					<center>
						<br /> <br /> <br />
						<h1 style="color: black; font-size: 16px;">Bạn chưa chọn bài
							nào để so sánh</h1>
						<br />
						<h1 style="color: blue; font-size: 12px;">Bạn có thể chọn bài
							so sánh ở trang chủ hoặc trang chi tiết.</h1>
						<br />
						<h1 style="color: red; font-size: 12px;">Lưu ý : Bạn chỉ có
							thể so sánh tối đa 3 bài !</h1>
						<div style="height: 600px;"></div>
					</center>
				</c:when>
				<c:otherwise>
					<br />
					<div style="padding-left: 40%">
						<button type="button" class="buttonpost"
							style="width: 200px; height: 30px;" onclick="deletecompare()">Xóa
							danh sách so sánh</button>
						<script type="text/javascript">
						function deletecompare(){
							document.location='removecompare.action';
						}
					</script>
					</div>
					<div style="float: left;">
						<table width="960px" height="auto" border="0" align="center"
							cellpadding="0" cellspacing="0" style="margin-top: 10px;">
							<tr>
								<th scope="col" class="comparehouseheader"><span
									style="margin: 3px 0 3px 15px; float: left;">Tiêu đề</span></th>
								<c:choose>
									<c:when test="${list1==null}">
										<th scope="col" width="28%" class="comparehouseheader"
											style="border-left: 0px solid"><span>--</span>
										</th>
									</c:when>

									<c:otherwise>
										<th scope="col" width="28%" class="comparehouseheader"
											style="border-left: 0px solid"><span><a href="detail.action?topicId=${list1[0][14]}&districtId=${list1[0][26]}">${list1[0][0]}</a></span>
										</th>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list2==null}">
										<th scope="col" width="28%" class="comparehouseheader"
											style="border-left: 0px solid"><span>--</span>
										</th>
									</c:when>

									<c:otherwise>
										<th scope="col" width="28%" class="comparehouseheader"
											style="border-left: 0px solid"><span><a href="detail.action?topicId=${list2[0][14]}&districtId=${list2[0][26]}">${list2[0][0]}</a></span>
										</th>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list3==null}">
										<th scope="col" width="28%" class="comparehouseheader"
											style="border-left: 0px solid"><span>--</span>
										</th>
									</c:when>

									<c:otherwise>
										<th scope="col" width="28%" class="comparehouseheader"
											style="border-left: 0px solid"><span><a href="detail.action?topicId=${list3[0][14]}&districtId=${list3[0][26]}">${list3[0][0]}</a></span>
										</th>
									</c:otherwise>
								</c:choose>
							</tr>
							<tr valign="top">
								<th scope="row" class="comparehouseheader"
									style="background: #FFF; border-top: 0px;"><span
									style="margin: 3px 0 3px 15px; float: left;">Địa chỉ</span></th>
								<c:choose>
									<c:when test="${list1==null}">
										<td class="comparehouse"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<td class="comparehouse"><span>${list1[0][1]}</span>
										</td>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list2==null}">
										<td class="comparehouse"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<td class="comparehouse"><span>${list2[0][1]}</span>
										</td>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list3==null}">
										<td class="comparehouse"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<td class="comparehouse"><span>${list3[0][1]}</span>
										</td>
									</c:otherwise>
								</c:choose>

							</tr>
							<tr>
								<th scope="row" class="comparehouseheader"
									style="background: #F5F5F5; border-top: 0px;"><span
									style="margin: 3px 0 3px 15px; float: left;">Giá</span></th>
								<c:choose>
									<c:when test="${list1==null}">
										<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<td class="comparehouse" style="background: #F5F5F5"><span
											style="color: red;">${list1[0][3]}</span><span> triệu
												/ tháng</span>
										</td>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list2==null}">
										<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<td class="comparehouse" style="background: #F5F5F5"><span
											style="color: red;">${list2[0][3]}</span><span> triệu
												/ tháng</span>
										</td>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list3==null}">
										<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<td class="comparehouse" style="background: #F5F5F5"><span
											style="color: red;">${list3[0][3]}</span><span> triệu
												/ tháng</span>
										</td>
									</c:otherwise>
								</c:choose>
							</tr>
							<tr>
								<th scope="row" class="comparehouseheader"
									style="background: #FFF; border-top: 0px;"><span
									style="margin: 3px 0 3px 15px; float: left;">Diện tích</span>
								</th>
								<c:choose>
									<c:when test="${list1==null}">
										<td class="comparehouse"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<td class="comparehouse"><span style="color: red;">${list1[0][2]}</span><span>
												m2</span>
										</td>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list2==null}">
										<td class="comparehouse"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<td class="comparehouse"><span style="color: red;">${list2[0][2]}
										</span><span> m2</span>
										</td>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list3==null}">
										<td class="comparehouse"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<td class="comparehouse"><span style="color: red;">${list3[0][2]}</span><span>
												m2</span>
										</td>
									</c:otherwise>
								</c:choose>

							</tr>
							<tr>
								<th scope="row" class="comparehouseheader"
									style="background: #F5F5F5; border-top: 0px;"><span
									style="margin: 3px 0 3px 15px; float: left;">Tiền nước</span>
								</th>

								<c:choose>
									<c:when test="${list1==null}">
										<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<c:choose>
											<c:when test="${list1[0][15]==1}">
												<c:choose>
													<c:when test="${list1[0][16]==null || list1[0][16]=='' }">
														<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
													</c:when>
													<c:otherwise>
														<td class="comparehouse" style="background: #F5F5F5"><span>${list1[0][16]}
																nghìn vnđ/tháng/người</span>
														</td>
													</c:otherwise>
												</c:choose>
											</c:when>
											<c:otherwise>
												<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
											</c:otherwise>
										</c:choose>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list2==null}">
										<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
										</td>
									</c:when>
									<c:otherwise>
										<c:choose>
											<c:when test="${list2[0][15]==1}">
												<c:choose>
													<c:when test="${list2[0][16]==null || list2[0][16]=='' }">
														<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
													</c:when>
													<c:otherwise>
														<td class="comparehouse" style="background: #F5F5F5"><span>${list2[0][16]}
																nghìn vnđ/tháng/người</span>
														</td>
													</c:otherwise>
												</c:choose>
											</c:when>
											<c:otherwise>
												<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
											</c:otherwise>
										</c:choose>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list3==null}">
										<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<c:choose>
											<c:when test="${list3[0][15]==1}">
												<c:choose>
													<c:when test="${list3[0][16]==null || list3[0][16]=='' }">
														<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
													</c:when>
													<c:otherwise>
														<td class="comparehouse" style="background: #F5F5F5"><span>${list3[0][16]}
																nghìn vnđ/tháng/người</span>
														</td>
													</c:otherwise>
												</c:choose>
											</c:when>
											<c:otherwise>
												<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
											</c:otherwise>
										</c:choose>
									</c:otherwise>
								</c:choose>
							</tr>
							<tr>
								<th scope="row" class="comparehouseheader"
									style="background: #FFF; border-top: 0px;"><span
									style="margin: 3px 0 3px 15px; float: left;">Tiền điện</span>
								</th>
								<c:choose>
									<c:when test="${list1==null}">
										<td class="comparehouse"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<c:choose>
											<c:when test="${list1[0][15]==1}">
												<c:choose>
													<c:when test="${list1[0][17]==null || list1[0][17]=='' }">
														<td class="comparehouse"><span>--</span>
													</c:when>
													<c:otherwise>
														<td class="comparehouse"><span>${list1[0][17]}
																nghìn vnđ/1kwh</span>
														</td>
													</c:otherwise>
												</c:choose>
											</c:when>
											<c:otherwise>
												<td class="comparehouse"><span>--</span>
											</c:otherwise>
										</c:choose>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list2==null}">
										<td class="comparehouse"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<c:choose>
											<c:when test="${list2[0][15]==1}">
												<c:choose>
													<c:when test="${list2[0][17]==null || list2[0][17]=='' }">
														<td class="comparehouse"><span>--</span>
													</c:when>
													<c:otherwise>
														<td class="comparehouse"><span>${list2[0][17]}
																nghìn vnđ/1kwh</span>
														</td>
													</c:otherwise>
												</c:choose>
											</c:when>
											<c:otherwise>
												<td class="comparehouse"><span>--</span>
											</c:otherwise>
										</c:choose>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list3==null}">
										<td class="comparehouse"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<c:choose>
											<c:when test="${list3[0][15]==1}">
												<c:choose>
													<c:when test="${list3[0][17]==null || list3[0][17]=='' }">
														<td class="comparehouse"><span>--</span>
													</c:when>
													<c:otherwise>
														<td class="comparehouse"><span>${list3[0][17]}
																nghìn vnđ/1kwh</span>
														</td>
													</c:otherwise>
												</c:choose>
											</c:when>
											<c:otherwise>
												<td class="comparehouse"><span>--</span>
											</c:otherwise>
										</c:choose>
									</c:otherwise>
								</c:choose>
							</tr>

							<tr>
								<th scope="row" class="comparehouseheader"
									style="background: #F5F5F5; border-top: 0px;"><span
									style="margin: 3px 0 3px 15px; float: left;">Nấu ăn</span>
								</th>
								<c:choose>
									<c:when test="${list1[0][15]==1}">
										<c:choose>
											<c:when test="${list1[0][19]==1}">
												<td class="comparehouse" style="background: #F5F5F5"><span>Trong
														phòng</span>
												</td>
											</c:when>
											<c:when test="${list1[0][19]==2}">
												<td class="comparehouse" style="background: #F5F5F5"><span>Bên
														ngoài</span>
												</td>
											</c:when>
											<c:otherwise>
												<td class="comparehouse" style="background: #F5F5F5"><span>Không
														cho phép</span>
												</td>
											</c:otherwise>
										</c:choose>
									</c:when>
									<c:otherwise>
										<td class="comparehouse" style="background: #F5F5F5"
											style="background: #F5F5F5"><span>--</span>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list2[0][15]==1}">
										<c:choose>
											<c:when test="${list2[0][19]==1}">
												<td class="comparehouse" style="background: #F5F5F5"><span>Trong
														phòng</span>
												</td>
											</c:when>
											<c:when test="${list2[0][19]==2}">
												<td class="comparehouse" style="background: #F5F5F5"><span>Bên
														ngoài</span>
												</td>
											</c:when>
											<c:otherwise>
												<td class="comparehouse" style="background: #F5F5F5"><span>Không
														cho phép</span>
												</td>
											</c:otherwise>
										</c:choose>
									</c:when>
									<c:otherwise>
										<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list3[0][15]==1}">
										<c:choose>
											<c:when test="${list3[0][19]==1}">
												<td class="comparehouse" style="background: #F5F5F5"><span>Trong
														phòng</span>
												</td>
											</c:when>
											<c:when test="${list3[0][19]==2}">
												<td class="comparehouse" style="background: #F5F5F5"><span>Bên
														ngoài</span>
												</td>
											</c:when>
											<c:otherwise>
												<td class="comparehouse" style="background: #F5F5F5"><span>Không
														cho phép</span>
												</td>
											</c:otherwise>
										</c:choose>
									</c:when>
									<c:otherwise>
										<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
									</c:otherwise>
								</c:choose>

							</tr>
							<tr>
								<th scope="row" class="comparehouseheader"
									style="background: #FFF; border-top: 0px;"><span
									style="margin: 3px 0 3px 15px; float: left;">Vệ sinh</span>
								</th>
								<c:choose>
									<c:when test="${list1==null}">
										<td class="comparehouse"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<c:choose>
											<c:when test="${list1[0][18]==1}">
												<td class="comparehouse"><span>Riêng</span>
												</td>
											</c:when>
											<c:otherwise>
												<td class="comparehouse"><span>Chung</span>
												</td>
											</c:otherwise>
										</c:choose>

									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list2==null}">
										<td class="comparehouse"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<c:choose>
											<c:when test="${list2[0][18]==1}">
												<td class="comparehouse"><span>Riêng</span>
												</td>
											</c:when>
											<c:otherwise>
												<td class="comparehouse"><span>Chung</span>
												</td>
											</c:otherwise>
										</c:choose>

									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list3==null}">
										<td class="comparehouse"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<c:choose>
											<c:when test="${list3[0][18]==1}">
												<td class="comparehouse"><span>Riêng</span>
												</td>
											</c:when>
											<c:otherwise>
												<td class="comparehouse"><span>Chung</span>
												</td>
											</c:otherwise>
										</c:choose>
									</c:otherwise>
								</c:choose>
							</tr>
							<tr>
								<th scope="row" class="comparehouseheader"
									style="background: #F5F5F5; border-top: 0px;"><span
									style="margin: 3px 0 3px 15px; float: left;">Internet</span>
								</th>
								<c:choose>
									<c:when test="${list1[0][15]==1}">
										<c:choose>
											<c:when test="${list1[0][20]==1}">
												<td class="comparehouse" style="background: #F5F5F5"><span>Có</span>
												</td>
											</c:when>
											<c:otherwise>
												<td class="comparehouse" style="background: #F5F5F5"><span>Không</span>
												</td>
											</c:otherwise>
										</c:choose>
									</c:when>
									<c:otherwise>
										<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list2[0][15]==1}">
										<c:choose>
											<c:when test="${list2[0][20]==1}">
												<td class="comparehouse" style="background: #F5F5F5"><span>Có</span>
												</td>
											</c:when>
											<c:otherwise>
												<td class="comparehouse" style="background: #F5F5F5"><span>Không</span>
												</td>
											</c:otherwise>
										</c:choose>
									</c:when>
									<c:otherwise>
										<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list3[0][15]==1}">
										<c:choose>
											<c:when test="${list3[0][20]==1}">
												<td class="comparehouse" style="background: #F5F5F5"><span>Có</span>
												</td>
											</c:when>
											<c:otherwise>
												<td class="comparehouse" style="background: #F5F5F5"><span>Không</span>
												</td>
											</c:otherwise>
										</c:choose>
									</c:when>
									<c:otherwise>
										<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
									</c:otherwise>
								</c:choose>
							</tr>
							<tr>
								<th scope="row" class="comparehouseheader"
									style="background: #FFF; border-top: 0px;"><span
									style="margin: 3px 0 3px 15px; float: left;">Loại nhà</span>
								</th>
								<c:choose>
									<c:when test="${list1==null}">
										<td class="comparehouse"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<c:choose>
											<c:when test="${list1[0][21]==1}">
												<td class="comparehouse"><span>Không chung chủ</span>
												</td>
											</c:when>
											<c:otherwise>
												<td class="comparehouse"><span>Chung chủ</span>
												</td>
											</c:otherwise>
										</c:choose>

									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list2==null}">
										<td class="comparehouse"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<c:choose>
											<c:when test="${list2[0][21]==1}">
												<td class="comparehouse"><span>Không chung chủ</span>
												</td>
											</c:when>
											<c:otherwise>
												<td class="comparehouse"><span>Chung chủ</span>
												</td>
											</c:otherwise>
										</c:choose>

									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list3==null}">
										<td class="comparehouse"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<c:choose>
											<c:when test="${list3[0][21]==1}">
												<td class="comparehouse"><span>Không chung chủ</span>
												</td>
											</c:when>
											<c:otherwise>
												<td class="comparehouse"><span>Chung chủ</span>
												</td>
											</c:otherwise>
										</c:choose>

									</c:otherwise>
								</c:choose>
							</tr>
							<tr>
								<th scope="row" class="comparehouseheader"
									style="background: #F5F5F5; border-top: 0px;"><span
									style="margin: 3px 0 3px 15px; float: left;">Chỗ để xe
										máy</span>
								</th>
								<c:choose>
									<c:when test="${list1[0][15]==1}">
										<c:choose>
											<c:when test="${list1[0][22]==1}">
												<td class="comparehouse" style="background: #F5F5F5"><span>Miễn
														phí</span>
												</td>
											</c:when>
											<c:when test="${list1[0][22]==2}">
												<td class="comparehouse" style="background: #F5F5F5"><span>Thu
														tiền</span>
												</td>
											</c:when>
											<c:otherwise>
												<td class="comparehouse" style="background: #F5F5F5"><span>Không</span>
												</td>
											</c:otherwise>
										</c:choose>
									</c:when>
									<c:otherwise>
										<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
									</c:otherwise>

								</c:choose>
								<c:choose>
									<c:when test="${list2[0][15]==1}">
										<c:choose>
											<c:when test="${list2[0][22]==1}">
												<td class="comparehouse" style="background: #F5F5F5"><span>Miễn
														phí</span>
												</td>
											</c:when>
											<c:when test="${list2[0][22]==2}">
												<td class="comparehouse" style="background: #F5F5F5"><span>Thu
														tiền</span>
												</td>
											</c:when>
											<c:otherwise>
												<td class="comparehouse" style="background: #F5F5F5"><span>Không</span>
												</td>
											</c:otherwise>
										</c:choose>
									</c:when>
									<c:otherwise>
										<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list3[0][15]==1}">
										<c:choose>
											<c:when test="${list3[0][22]==1}">
												<td class="comparehouse" style="background: #F5F5F5"><span>Miễn
														phí</span>
												</td>
											</c:when>
											<c:when test="${list3[0][22]==2}">
												<td class="comparehouse" style="background: #F5F5F5"><span>Thu
														tiền</span>
												</td>
											</c:when>
											<c:otherwise>
												<td class="comparehouse" style="background: #F5F5F5"><span>Không</span>
												</td>
											</c:otherwise>
										</c:choose>
									</c:when>
									<c:otherwise>
										<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
									</c:otherwise>
								</c:choose>
							</tr>
							<tr>
								<th scope="row" class="comparehouseheader"
									style="background: #FFF; border-top: 0px;"><span
									style="margin: 3px 0 3px 15px; float: left;">Phí để xe
										máy</span>
								</th>

								<c:choose>
									<c:when test="${list1[0][15]==1}">
										<c:choose>
											<c:when test="${list1[0][23]==null || list1[0][23]=='' }">
												<td class="comparehouse"><span>--</span>
											</c:when>
											<c:otherwise>
												<td class="comparehouse"><span>${list1[0][23]}
														nghìn vnđ/tháng</span>
												</td>
											</c:otherwise>
										</c:choose>
									</c:when>
									<c:otherwise>
										<td class="comparehouse"><span>--</span>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list2[0][15]==1}">
										<c:choose>
											<c:when test="${list2[0][23]==null || list2[0][23]=='' }">
												<td class="comparehouse"><span>--</span>
											</c:when>
											<c:otherwise>
												<td class="comparehouse"><span>${list2[0][23]}
														nghìn vnđ/tháng</span>
												</td>
											</c:otherwise>
										</c:choose>
									</c:when>
									<c:otherwise>
										<td class="comparehouse"><span>--</span>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list3[0][15]==1}">
										<c:choose>
											<c:when test="${list3[0][23]==null || list3[0][23]=='' }">
												<td class="comparehouse"><span>--</span>
											</c:when>
											<c:otherwise>
												<td class="comparehouse"><span>${list3[0][23]}
														nghìn vnđ/tháng</span>
												</td>
											</c:otherwise>
										</c:choose>
									</c:when>
									<c:otherwise>
										<td class="comparehouse"><span>--</span>
									</c:otherwise>
								</c:choose>
							</tr>
							<tr>
								<th scope="row" class="comparehouseheader"
									style="background: #F5F5F5; border-top: 0px;"><span
									style="margin: 3px 0 3px 15px; float: left;">Giờ đóng
										cửa</span>
								</th>
								<c:choose>
									<c:when test="${list1[0][15]==1}">
										<c:choose>
											<c:when test="${list1[0][24]=='10h'}">
												<td class="comparehouse" style="background: #F5F5F5"><span>10h</span>
												</td>
											</c:when>
											<c:when test="${list1[0][24]=='10h30'}">
												<td class="comparehouse" style="background: #F5F5F5"><span>10h30</span>
												</td>
											</c:when>
											<c:when test="${list1[0][24]=='11h'}">
												<td class="comparehouse" style="background: #F5F5F5"><span>11h</span>
												</td>
											</c:when>
											<c:when test="${list1[0][24]=='11h30'}">
												<td class="comparehouse" style="background: #F5F5F5"><span>11h30</span>
												</td>
											</c:when>
											<c:when test="${list1[0][24]=='12h'}">
												<td class="comparehouse" style="background: #F5F5F5"><span>12h</span>
												</td>
											</c:when>
											<c:otherwise>
												<td class="comparehouse" style="background: #F5F5F5"><span>Tự
														do</span>
												</td>
											</c:otherwise>
										</c:choose>
									</c:when>
									<c:otherwise>
										<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list2[0][15]==1}">
										<c:choose>
											<c:when test="${list2[0][24]=='10h'}">
												<td class="comparehouse" style="background: #F5F5F5"><span>10h</span>
												</td>
											</c:when>
											<c:when test="${list2[0][24]=='10h30'}">
												<td class="comparehouse" style="background: #F5F5F5"><span>10h30</span>
												</td>
											</c:when>
											<c:when test="${list2[0][24]=='11h'}">
												<td class="comparehouse" style="background: #F5F5F5"><span>11h</span>
												</td>
											</c:when>
											<c:when test="${list2[0][24]=='11h30'}">
												<td class="comparehouse" style="background: #F5F5F5"><span>11h30</span>
												</td>
											</c:when>
											<c:when test="${list2[0][24]=='12h'}">
												<td class="comparehouse" style="background: #F5F5F5"><span>12h</span>
												</td>
											</c:when>
											<c:otherwise>
												<td class="comparehouse" style="background: #F5F5F5"><span>Tự
														do</span>
												</td>
											</c:otherwise>
										</c:choose>
									</c:when>
									<c:otherwise>
										<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list3[0][15]==1}">
										<c:choose>
											<c:when test="${list3[0][24]=='10h'}">
												<td class="comparehouse" style="background: #F5F5F5"><span>10h</span>
												</td>
											</c:when>
											<c:when test="${list3[0][24]=='10h30'}">
												<td class="comparehouse" style="background: #F5F5F5"><span>10h30</span>
												</td>
											</c:when>
											<c:when test="${list3[0][24]=='11h'}">
												<td class="comparehouse" style="background: #F5F5F5"><span>11h</span>
												</td>
											</c:when>
											<c:when test="${list3[0][24]=='11h30'}">
												<td class="comparehouse" style="background: #F5F5F5"><span>11h30</span>
												</td>
											</c:when>
											<c:when test="${list3[0][24]=='12h'}">
												<td class="comparehouse" style="background: #F5F5F5"><span>12h</span>
												</td>
											</c:when>
											<c:otherwise>
												<td class="comparehouse" style="background: #F5F5F5"><span>Tự
														do</span>
												</td>
											</c:otherwise>
										</c:choose>
									</c:when>
									<c:otherwise>
										<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
									</c:otherwise>
								</c:choose>
							</tr>
							<tr>
								<th scope="row" class="comparehouseheader"
									style="background: #FFF; border-top: 0px;"><span
									style="margin: 3px 0 3px 15px; float: left;">Liên hệ</span>
								</th>
								<c:choose>
									<c:when test="${list1==null}">
										<td class="comparehouse"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<td class="comparehouse"><span>${list1[0][4]}</span>
										</td>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list2==null}">
										<td class="comparehouse"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<td class="comparehouse"><span>${list2[0][4]}</span>
										</td>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list3==null}">
										<td class="comparehouse"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<td class="comparehouse"><span>${list3[0][4]}</span>
										</td>
									</c:otherwise>
								</c:choose>

							</tr>
							<tr>
								<th scope="row" class="comparehouseheader"
									style="background: #F5F5F5; border-top: 0px;"><span
									style="margin: 3px 0 3px 15px; float: left;">Số điện
										thoại</span>
								</th>
								<c:choose>
									<c:when test="${list1==null}">
										<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<td class="comparehouse" style="background: #F5F5F5"><span>${list1[0][5]}</span>
										</td>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list2==null}">
										<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<td class="comparehouse" style="background: #F5F5F5"><span>${list2[0][5]}</span>
										</td>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list3==null}">
										<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<td class="comparehouse" style="background: #F5F5F5"><span>${list3[0][5]}</span>
										</td>
									</c:otherwise>
								</c:choose>
							</tr>
							<tr valign="top">
								<th scope="row" class="comparehouseheader"
									style="background: #FFF; border-top: 0px;"><span
									style="margin: 3px 0 3px 15px; float: left;">Mô tả</span></th>
								<c:choose>
									<c:when test="${list1==null}">
										<td class="comparehouse"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<td class="comparehouse"><span>${list1[0][7]}</span>
										</td>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list2==null}">
										<td class="comparehouse"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<td class="comparehouse"><span>${list2[0][7]}</span>
										</td>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list3==null}">
										<td class="comparehouse"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<td class="comparehouse"><span>${list3[0][7]}</span>
										</td>
									</c:otherwise>
								</c:choose>
							</tr>
							<c:choose>
								<c:when test="${displayNamess!=null}">
									<tr valign="top">
										<th scope="row" class="comparehouseheader"
											style="background: #F5F5F5; border-top: 0px;"><span
											style="margin: 3px 0 3px 15px; float: left;">Thêm vào
												yêu thích</span></th>
										<c:choose>
											<c:when test="${list1==null}">
												<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
												</td>
											</c:when>

											<c:otherwise>
												<c:choose>
													<c:when test="${favExit1==0}">
														<td class="comparehouse" style="background: #F5F5F5"><span
															id="fv${list1[0][14]}"><a style="color: #009900;"
																href="javascript:void(0);" onclick="AddFavorite(${list1[0][14]})">Thích</a>
														</span></td>
													</c:when>
													<c:otherwise>
														<td class="comparehouse" style="background: #F5F5F5"><span
															id="fv${list1[0][14]}">Đã có trong yêu thích </span>
													</c:otherwise>
												</c:choose>
											</c:otherwise>
										</c:choose>
										<c:choose>
											<c:when test="${list2==null}">
												<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
												</td>
											</c:when>

											<c:otherwise>
												<c:choose>
													<c:when test="${favExit2==0}">
														<td class="comparehouse" style="background: #F5F5F5"><span
															id="fv${list2[0][14]}"><a style="color: #009900;"
																href="javascript:void(0);" onclick="AddFavorite(${list2[0][14]})">Thích</a>
														</span></td>
													</c:when>
													<c:otherwise>
														<td class="comparehouse" style="background: #F5F5F5"><span
															id="fv${list1[0][14]}">Đã có trong yêu thích </span>
													</c:otherwise>
												</c:choose>
											</c:otherwise>
										</c:choose>
										<c:choose>
											<c:when test="${list3==null}">
												<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
												</td>
											</c:when>

											<c:otherwise>
												<c:choose>
													<c:when test="${favExit3==0}">
														<td class="comparehouse" style="background: #F5F5F5"><span
															id="fv${list3[0][14]}"><a style="color: #009900;"
																href="javascript:void(0);" onclick="AddFavorite(${list3[0][14]})">Thích</a>
														</span></td>
													</c:when>
													<c:otherwise>
														<td class="comparehouse" style="background: #F5F5F5"><span
															id="fv${list1[0][14]}">Đã có trong yêu thích </span>
													</c:otherwise>
												</c:choose>
											</c:otherwise>
										</c:choose>
									</tr>
								</c:when>
							</c:choose>
							<tr valign="top">
								<th scope="row" class="comparehouseheader"
									style="background: #F5F5F5; border-top: 0px;"><span
									style="margin: 3px 0 3px 15px; float: left;">Xóa so sánh</span>
								</th>
								<c:choose>
									<c:when test="${list1==null}">
										<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<td class="comparehouse" style="background: #F5F5F5"><span><a
												style="color: red;"
												href="removeonecompare?topicId=${list1[0][14]}">Xóa</a> </span>
										</td>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list2==null}">
										<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<td class="comparehouse" style="background: #F5F5F5"><span><a
												style="color: red;"
												href="removeonecompare?topicId=${list2[0][14]}">Xóa</a> </span>
										</td>
									</c:otherwise>
								</c:choose>
								<c:choose>
									<c:when test="${list3==null}">
										<td class="comparehouse" style="background: #F5F5F5"><span>--</span>
										</td>
									</c:when>

									<c:otherwise>
										<td class="comparehouse" style="background: #F5F5F5"><span><a
												style="color: red;"
												href="removeonecompare?topicId=${list3[0][14]}">Xóa</a> </span>
										</td>
									</c:otherwise>
								</c:choose>
							</tr>
						</table>
					</div>
				</c:otherwise>
			</c:choose>
			<!--compare-->

			<!--encompare-->

			<!--End main-->
		</div>
	</div>
	<div id="footercus" style="text-align: center;">
		Designed by FU team | Powered by Struts <br> khutro.net
	</div>
	<div style="display: none;" class="nav_up" id="nav_up"></div>
	<div style="display: none;" class="nav_down" id="nav_down"></div>
	<script>
		jQuery(function() {
			var $elem = $('#contentmain');

			jQuery('#nav_up').fadeIn('slow');
			jQuery('#nav_down').fadeIn('slow');

			jQuery(window).bind('scrollstart', function() {
				$('#nav_up,#nav_down').stop().animate({
					'opacity' : '0.2'
				});
			});
			jQuery(window).bind('scrollstop', function() {
				$('#nav_up,#nav_down').stop().animate({
					'opacity' : '1'
				});
			});

			jQuery('#nav_down').click(function(e) {
				$('html, body').animate({
					scrollTop : $elem.height()
				}, 800);
			});
			jQuery('#nav_up').click(function(e) {
				$('html, body').animate({
					scrollTop : '0px'
				}, 800);
			});
		});
	</script>
	<!-- End Save for Web Slices -->
</body>
</html>